package com.artifex.mupdf.viewer

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class HomeViewModel(repository: BookRepository) : ViewModel() {

    private val _books = repository.getBooks()
    val books: LiveData<List<Book>> = _books

    fun deleteBook(bookId: String) {
        viewModelScope.launch {
        }
    }

    private val _searchQuery = MutableLiveData<String>("")
    val searchQuery: LiveData<String> = _searchQuery
}